<?php
use LSYS\Area;
use LSYS\APIServer\ResultSucc;
use LSYS\APIServer\Param;
include_once __DIR__."/Bootstarp.php";
$area=Area::instance();
//搜索地址
$param=Param::factory($_GET);
$code=$param->get("key",'',Param::TYPE_STRING_TRIM);
$data=$area->search($code);
out_json(ResultSucc::factory($data));